﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Portal_Search" StylesheetTheme="ContentMS" %>
<%@ Register Src="../UserControls/Header.ascx" TagName="Header" TagPrefix="ucHeader" %>
<%@ Register Src="../UserControls/Tailer.ascx" TagName="Tailer" TagPrefix="ucTailer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>搜索页面</title>
</head>
<body style="margin-top:0;margin-bottom:0;">
    <form id="form1" runat="server">
     <table style="width:780;border-width:thin;" cellpadding="0" cellspacing="0" border="0" align="center" class="GbText">		
		<tr>
			<td class="GbText" colspan="2">
				<ucHeader:Header ID="siteheader" runat="server" />
			</td>
		</tr>
		<tr>
			<td valign="bottom" height="51" style="background-image: url(../Images/search_r1_c1.jpg)">
				<table cellpadding="0" cellspacing="0" border="0" class="GbText">		
					<tr>
						<td height="51" class="GbText" width="175">&nbsp;</td>
						<td height="51" class="GbText"><asp:TextBox ID="tbKey" runat="server"></asp:TextBox></td>
						<td height="51" class="GbText">&nbsp;&nbsp;<asp:ImageButton ID="ibtSearch" runat="server" ImageUrl="~/Images/Search_button.jpg" OnClick="ibtSearch_Click" /></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td style="background-image: url(../Images/search_r2_c1.jpg); height: 28px;">
				<asp:Label ID="SearchMsg" runat="server" Width="100%" ForeColor="Red"></asp:Label>
			</td>
		</tr>
		<tr>
			<td bgcolor="#EAF1F9">
				<asp:GridView ID="ContentView" runat="server" CellSpacing="5" CssClass="GbText" ShowHeader="False" AutoGenerateColumns="False" Width="100%" BorderWidth="0px" Style="font-weight: bold;" AllowPaging="True" PageSize="20">
					<Columns>
						<asp:TemplateField>
							<ItemTemplate>
								<asp:Image ID="ContentImage" runat="server" ImageUrl="../Images/index_36.gif" />&nbsp;
								<a href='ViewCatalog.aspx?CatalogID=<%#Eval("CatalogID") %>&CurCatalogID=<%#Eval("ParCatalogID") %>' target="_blank"><font color="RoyalBlue">[<%# Eval("CatalogName") %>]</font></a>&nbsp;&nbsp;
								<a href='<%# FormatContentUrl(Eval("Desn").ToString(),(Boolean)Eval("Type"),(int)Eval("ID"),(int)Eval("CatalogID"),(int)Eval("ParCatalogID")) %>' target="_blank"><%# Eval("Name")%>&nbsp;&nbsp;<font color="silver">(<%# Eval("CreateDate","{0:d}")%>)</font></a>
							</ItemTemplate>
						</asp:TemplateField>
					</Columns>
					<RowStyle Height="20px" HorizontalAlign="Left" VerticalAlign="Middle" />
					<PagerSettings Visible="False" />
				</asp:GridView>
			</td>
		</tr>
		<tr>
			<td align="center" runat="server" id="PageTd" width="780" bgcolor="#EAF1F9" style="height: 30px">
				<asp:Label ID="CurrentIndex" runat="server"></asp:Label>&nbsp;
				<asp:ImageButton ID="PrevBtn" runat="server" ImageUrl="~/Images/syy04-s.gif" CommandName="prev" OnCommand="PageBtn_Command" CausesValidation="False" />&nbsp;<asp:ImageButton ID="NextBtn" runat="server" ImageUrl="~/Images/syy05-x.gif" CommandName="next" OnCommand="PageBtn_Command" CausesValidation="False" />
				&nbsp;转移到<asp:TextBox ID="tbMove" runat="server" Width="30px" CssClass="InputCss">1</asp:TextBox>页<asp:RangeValidator ID="rvPage" runat="server" ControlToValidate="tbMove"
					Display="Dynamic" ErrorMessage="页码输入错误" MinimumValue="1" Type="Integer" MaximumValue="10000"></asp:RangeValidator><asp:RequiredFieldValidator ID="rfPage" runat="server" ControlToValidate="tbMove"
					Display="Dynamic" ErrorMessage="请输入页码"></asp:RequiredFieldValidator>
				<asp:ImageButton
						ID="ibtnMove" runat="server" CommandName="move" ImageUrl="~/Images/button.jpg"
						OnCommand="PageBtn_Command" />
			</td>
		</tr>
		<tr>
			<td colspan="2" style="background-image: url(Images/model(1.1)_r19_c1.jpg);">
				<ucTailer:Tailer ID="Tailer" runat="server" />
			</td>
		</tr>
	</table>
    </form>
</body>
</html>
